# coding: utf-8

from __future__ import absolute_import
from datetime import date, datetime  # noqa: F401

from typing import List, Dict  # noqa: F401

from swagger_server.models.base_model_ import Model
from swagger_server.models.orders_list_result_accounting import OrdersListResultAccounting  # noqa: F401,E501
from swagger_server.models.orders_list_result_duration import OrdersListResultDuration  # noqa: F401,E501
from swagger_server import util


class OrdersListResult(Model):
    """NOTE: This class is auto generated by the swagger code generator program.

    Do not edit the class manually.
    """

    def __init__(self, id: int=None, area: str=None, duration: List[OrdersListResultDuration]=None, accounting: List[OrdersListResultAccounting]=None):  # noqa: E501
        """OrdersListResult - a model defined in Swagger

        :param id: The id of this OrdersListResult.  # noqa: E501
        :type id: int
        :param area: The area of this OrdersListResult.  # noqa: E501
        :type area: str
        :param duration: The duration of this OrdersListResult.  # noqa: E501
        :type duration: List[OrdersListResultDuration]
        :param accounting: The accounting of this OrdersListResult.  # noqa: E501
        :type accounting: List[OrdersListResultAccounting]
        """
        self.swagger_types = {
            'id': int,
            'area': str,
            'duration': List[OrdersListResultDuration],
            'accounting': List[OrdersListResultAccounting]
        }

        self.attribute_map = {
            'id': 'id',
            'area': 'area',
            'duration': 'duration',
            'accounting': 'accounting'
        }

        self._id = id
        self._area = area
        self._duration = duration
        self._accounting = accounting

    @classmethod
    def from_dict(cls, dikt) -> 'OrdersListResult':
        """Returns the dict as a model

        :param dikt: A dict.
        :type: dict
        :return: The OrdersListResult of this OrdersListResult.  # noqa: E501
        :rtype: OrdersListResult
        """
        return util.deserialize_model(dikt, cls)

    @property
    def id(self) -> int:
        """Gets the id of this OrdersListResult.

        ID  # noqa: E501

        :return: The id of this OrdersListResult.
        :rtype: int
        """
        return self._id

    @id.setter
    def id(self, id: int):
        """Sets the id of this OrdersListResult.

        ID  # noqa: E501

        :param id: The id of this OrdersListResult.
        :type id: int
        """

        self._id = id

    @property
    def area(self) -> str:
        """Gets the area of this OrdersListResult.

        area  # noqa: E501

        :return: The area of this OrdersListResult.
        :rtype: str
        """
        return self._area

    @area.setter
    def area(self, area: str):
        """Sets the area of this OrdersListResult.

        area  # noqa: E501

        :param area: The area of this OrdersListResult.
        :type area: str
        """

        self._area = area

    @property
    def duration(self) -> List[OrdersListResultDuration]:
        """Gets the duration of this OrdersListResult.


        :return: The duration of this OrdersListResult.
        :rtype: List[OrdersListResultDuration]
        """
        return self._duration

    @duration.setter
    def duration(self, duration: List[OrdersListResultDuration]):
        """Sets the duration of this OrdersListResult.


        :param duration: The duration of this OrdersListResult.
        :type duration: List[OrdersListResultDuration]
        """

        self._duration = duration

    @property
    def accounting(self) -> List[OrdersListResultAccounting]:
        """Gets the accounting of this OrdersListResult.


        :return: The accounting of this OrdersListResult.
        :rtype: List[OrdersListResultAccounting]
        """
        return self._accounting

    @accounting.setter
    def accounting(self, accounting: List[OrdersListResultAccounting]):
        """Sets the accounting of this OrdersListResult.


        :param accounting: The accounting of this OrdersListResult.
        :type accounting: List[OrdersListResultAccounting]
        """

        self._accounting = accounting
